package com.auto.code.core.domain;

import java.io.Serializable;

import com.auto.code.core.enums.QueryTypeEnum;

/**
 * @desc 数据库表字段属性
 * @author meikb
 * @date 2019年9月29日	
 */
public class GenFieldEntity implements Serializable {
	private static final long serialVersionUID = 1L;

    /**
     * 是否为主键
     */
    private Integer isKey;
    /**
     * 数据库字段名称
     */
    private String fieldName;
    /**
     * 字段类型
     */
    private String type;
    /**
     * 字段名称
     */
    private String name;
    /**
     * 字段中文名称
     */
    private String chinaName;
    /**
     * 数据库字段注释
     */
    private String comment;
    /**
     * 数据库字段类型
     */
    private String fieldType;
    /**
     * 是否显示新增
     */
    private Integer isShowAdd;

    /**
     * 是否显示编辑
     */
    private Integer isShowEdit;

    /**
     * 是否显示详情
     */
    private Integer isShowDetail;

    /**
     * 是否列表显示
     */
    private Integer isShowList;

    /**
     * 是否Excel导入
     */
    private Integer isImport;

    /**
     * 是否导出Excel
     */
    private Integer isExport;

    /**
     * 是否查询
     */
    private Integer isQuery;

    /**
     * 查询类型
     */
    private Integer queryMode = QueryTypeEnum.EQ.getCode();

    /**
     * 显示类型
     */
    private String showType;

    /**
     * 排序
     */
    private Integer orderNum;

    /**
     * 字段名称
     */
    private String dictName;

    /**
     * 字段类型 1 枚举 2 字段 3 列表
     */
    private Integer dictType;

    /**
     * 前端校验
     */
    private Integer viewVerification;

    /**
     * 后台校验
     */
    private Integer serverVerification;

    /**
     * 允许空
     */
    private Integer notNull;

    /**
     * 最小
     */
    private String minNum;

    /**
     * 最大
     */
    private String maxNum;

    /**
     * 正则
     */
    private String regex;

    /**
     * 0 自定义 1 -邮箱 2 手机 3- 电话 4-身份证
     */
    private Integer regexType;

    /**
     * 字段默认值
     */
    private String fieldDefault;

    /**
     * 字段注释
     */
    private String fieldContent;

    /**
     * 字段长度
     */
    private Integer fieldLength;

    /**
     * 小数点位数
     */
    private Integer fieldPointLength;

	/**
	 * @return the isKey
	 */
	public Integer getIsKey() {
		return isKey;
	}

	/**
	 * @param isKey the isKey to set
	 */
	public void setIsKey(Integer isKey) {
		this.isKey = isKey;
	}

	/**
	 * @return the fieldName
	 */
	public String getFieldName() {
		return fieldName;
	}

	/**
	 * @param fieldName the fieldName to set
	 */
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the chinaName
	 */
	public String getChinaName() {
		return chinaName;
	}

	/**
	 * @param chinaName the chinaName to set
	 */
	public void setChinaName(String chinaName) {
		this.chinaName = chinaName;
	}

	/**
	 * @return the comment
	 */
	public String getComment() {
		return comment;
	}

	/**
	 * @param comment the comment to set
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}

	/**
	 * @return the fieldType
	 */
	public String getFieldType() {
		return fieldType;
	}

	/**
	 * @param fieldType the fieldType to set
	 */
	public void setFieldType(String fieldType) {
		this.fieldType = fieldType;
	}

	/**
	 * @return the isShowAdd
	 */
	public Integer getIsShowAdd() {
		return isShowAdd;
	}

	/**
	 * @param isShowAdd the isShowAdd to set
	 */
	public void setIsShowAdd(Integer isShowAdd) {
		this.isShowAdd = isShowAdd;
	}

	/**
	 * @return the isShowEdit
	 */
	public Integer getIsShowEdit() {
		return isShowEdit;
	}

	/**
	 * @param isShowEdit the isShowEdit to set
	 */
	public void setIsShowEdit(Integer isShowEdit) {
		this.isShowEdit = isShowEdit;
	}

	/**
	 * @return the isShowDetail
	 */
	public Integer getIsShowDetail() {
		return isShowDetail;
	}

	/**
	 * @param isShowDetail the isShowDetail to set
	 */
	public void setIsShowDetail(Integer isShowDetail) {
		this.isShowDetail = isShowDetail;
	}

	/**
	 * @return the isShowList
	 */
	public Integer getIsShowList() {
		return isShowList;
	}

	/**
	 * @param isShowList the isShowList to set
	 */
	public void setIsShowList(Integer isShowList) {
		this.isShowList = isShowList;
	}

	/**
	 * @return the isImport
	 */
	public Integer getIsImport() {
		return isImport;
	}

	/**
	 * @param isImport the isImport to set
	 */
	public void setIsImport(Integer isImport) {
		this.isImport = isImport;
	}

	/**
	 * @return the isExport
	 */
	public Integer getIsExport() {
		return isExport;
	}

	/**
	 * @param isExport the isExport to set
	 */
	public void setIsExport(Integer isExport) {
		this.isExport = isExport;
	}

	/**
	 * @return the isQuery
	 */
	public Integer getIsQuery() {
		return isQuery;
	}

	/**
	 * @param isQuery the isQuery to set
	 */
	public void setIsQuery(Integer isQuery) {
		this.isQuery = isQuery;
	}

	/**
	 * @return the queryMode
	 */
	public Integer getQueryMode() {
		return queryMode;
	}

	/**
	 * @param queryMode the queryMode to set
	 */
	public void setQueryMode(Integer queryMode) {
		this.queryMode = queryMode;
	}

	/**
	 * @return the showType
	 */
	public String getShowType() {
		return showType;
	}

	/**
	 * @param showType the showType to set
	 */
	public void setShowType(String showType) {
		this.showType = showType;
	}

	/**
	 * @return the orderNum
	 */
	public Integer getOrderNum() {
		return orderNum;
	}

	/**
	 * @param orderNum the orderNum to set
	 */
	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	/**
	 * @return the dictName
	 */
	public String getDictName() {
		return dictName;
	}

	/**
	 * @param dictName the dictName to set
	 */
	public void setDictName(String dictName) {
		this.dictName = dictName;
	}

	/**
	 * @return the dictType
	 */
	public Integer getDictType() {
		return dictType;
	}

	/**
	 * @param dictType the dictType to set
	 */
	public void setDictType(Integer dictType) {
		this.dictType = dictType;
	}

	/**
	 * @return the viewVerification
	 */
	public Integer getViewVerification() {
		return viewVerification;
	}

	/**
	 * @param viewVerification the viewVerification to set
	 */
	public void setViewVerification(Integer viewVerification) {
		this.viewVerification = viewVerification;
	}

	/**
	 * @return the serverVerification
	 */
	public Integer getServerVerification() {
		return serverVerification;
	}

	/**
	 * @param serverVerification the serverVerification to set
	 */
	public void setServerVerification(Integer serverVerification) {
		this.serverVerification = serverVerification;
	}

	/**
	 * @return the notNull
	 */
	public Integer getNotNull() {
		return notNull;
	}

	/**
	 * @param notNull the notNull to set
	 */
	public void setNotNull(Integer notNull) {
		this.notNull = notNull;
	}

	/**
	 * @return the minNum
	 */
	public String getMinNum() {
		return minNum;
	}

	/**
	 * @param minNum the minNum to set
	 */
	public void setMinNum(String minNum) {
		this.minNum = minNum;
	}

	/**
	 * @return the maxNum
	 */
	public String getMaxNum() {
		return maxNum;
	}

	/**
	 * @param maxNum the maxNum to set
	 */
	public void setMaxNum(String maxNum) {
		this.maxNum = maxNum;
	}

	/**
	 * @return the regex
	 */
	public String getRegex() {
		return regex;
	}

	/**
	 * @param regex the regex to set
	 */
	public void setRegex(String regex) {
		this.regex = regex;
	}

	/**
	 * @return the regexType
	 */
	public Integer getRegexType() {
		return regexType;
	}

	/**
	 * @param regexType the regexType to set
	 */
	public void setRegexType(Integer regexType) {
		this.regexType = regexType;
	}

	/**
	 * @return the fieldDefault
	 */
	public String getFieldDefault() {
		return fieldDefault;
	}

	/**
	 * @param fieldDefault the fieldDefault to set
	 */
	public void setFieldDefault(String fieldDefault) {
		this.fieldDefault = fieldDefault;
	}

	/**
	 * @return the fieldContent
	 */
	public String getFieldContent() {
		return fieldContent;
	}

	/**
	 * @param fieldContent the fieldContent to set
	 */
	public void setFieldContent(String fieldContent) {
		this.fieldContent = fieldContent;
	}

	/**
	 * @return the fieldLength
	 */
	public Integer getFieldLength() {
		return fieldLength;
	}

	/**
	 * @param fieldLength the fieldLength to set
	 */
	public void setFieldLength(Integer fieldLength) {
		this.fieldLength = fieldLength;
	}

	/**
	 * @return the fieldPointLength
	 */
	public Integer getFieldPointLength() {
		return fieldPointLength;
	}

	/**
	 * @param fieldPointLength the fieldPointLength to set
	 */
	public void setFieldPointLength(Integer fieldPointLength) {
		this.fieldPointLength = fieldPointLength;
	}
    
}
